package com.etone.smartAudit.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author: 蒋学伟
 * @date: 2018/10/12
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "登录信息")
public class LoginDTO implements Serializable {

    @ApiModelProperty("用户名")
    @Size(min = 2, max = 18, message = "2~18个中文、字母、数字或三种任意组合")
    private String account;

    @ApiModelProperty("密码")
    @NotEmpty
    private String password;

    @ApiModelProperty("验证码UUID")
    @NotEmpty
    private String uuid;

    @ApiModelProperty("验证码")
    @NotEmpty
    private String code;
}
